1. Launch Types
  2. Instance Types
    1. Burstable
    2. Burstable Unlimited
  3. EC2 AMIs
    1. Public AMO
    2. AMI Storage
    3. AMI Pricing
  4. EC2 Placement Greoup
    1. Cluster
    2. Spread
    3. Partition

EC2 Instance Launch Types


Under Instances :

Spot instance and spot fleet can be launched through spot instance request and spot instance alone can be launched through launch instance -> in Purchasing options while configuring Instance Details.

User defined max price tells is basically telling AWS that i am ready to pay the current price but if price goes beyonf the max price please reclain the instance.

Persistance Interruption behaviour Request any time from Request any time to Tenancy - use can chose to have a shared hardware / dedicated insatnce / dedicated host

EC2 Instance types (NOT Launch Types)

The main ones are listed below and are not the exhaustive list.

Burstable : T2/T3 :

Burst means overall a system is good performing. doing fine in CPU performance, E.g. : an application is run and suddenly CPU usage spikes. In this condition CPU can get burst and handles the spike welll. When a machine bursts, it uses the burst credit. If all credit is over the CPU becomes normal and may not give great performance. The user can buy credits in advance. If the machine stops, bursting career

Burstable : T2/T3 Unlimited :

From Nov 2017 it ispossible to have unlimited burst credit balance. Extra money need to be paid for the unlimited balance. IF the user id not monitoring the health and running important computation they can pay extra and have unlimired credit of bursts.

If the instance consistenylt running on low credit, user may chose to move it to a normal non bursting instances.

EC2 AMIs

AMAZON IMAGES: AWS offers alpt of base images :

These can be customized using the EC2 user data. User can customize these AMIs and build its own image / instance. using the base image to built customized instance.

Advantages of customised AMI

Public AMIs

User can opt to use the AMIs from other people and User can also rent other peoples AMI. Basically user can rent the expertise of a designed / optimised AMI if one choses not to do themselves.One can also becom an AMI expert and start renting.

WARNING! Do not trust any AMI available without due diligence.

AMI STORAGE

Basically AMIs need space and they reside in the amazon S3 space. S3 is the cheap online storage where most of the storage and backups are stored. By default any users AMI are locked and private for the particular region /account. User can make it public and make it available in marketplace, sell it to other users.

AMI PRICIHG

Amazon charges for the AMI that takes space of S3. amazon charge for the space.

For US-EAST-1

it is not expensive to store private AMIs. one can remove the AMI when not in use or when done working with those.

Instance - > Image -> Create Image. Verify and provide details. -> Create Image. When the image under AMIs become available, We can copy it to different regioon because an AMI is at once locked to specific region.

While launching the AMI : thing to notices : root volume is coming from the snapshot that is backed up from the Instance from which image is createad. AMIs are Amazons Machine Image.

Cross Account AMI : FAQ

EC2 Placement Groups

Placement stratgy is deciding how to place the EC2 instance in the AWS infrastructure. This strategy can be defined using the placement groups. There are 3 Strategies while creating a placement group.

  1. Cluster : Cluster instances (Clustered together) allow low latency single availability zone. - High performance - High risk
  2. Spread : Spread acorss different hardware : restriction of 7 Instances per group per AZ.Spread is best for the critical application.
  3. Partition : The instances are spread but spread across different partitions. (which rely on different sets of racks) Instances may not be spread but one partition is sperated from another partition. Within an availability zone 100s of EC2 instances er group is allowed fir partinion spread. (Allows apps like cassandra, Hadoop etc.)

Cluster :

Spread :

Partition :

Placement Groupts can be found under Network / Security. While Crearing an Instance under the Configure Instrance page : Selextion of placement geoup is available.